﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Runda.CMS.Workflow;

namespace Runda.CMS.Portal
{
    public class WorkflowPage:BasePage,IWorkflow
    {
        #region IWorkflow Members

        public IWorkflowInstance GetInstance(Guid ModelID)
        {
            WorkflowInstance instance = new WorkflowInstance(ModelID, CurrentUserEntity);
            return instance;
        }

        public IWorkflowInstance GetInstance(Guid TrackID, Guid TaskID)
        {
            WorkflowInstance instance = new WorkflowInstance(TrackID,TaskID, CurrentUserEntity);
            return instance;
        }

        #endregion
    }
}
